package com.bmd.backgroundmanger.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

/**
 * 试卷题目关联实体类
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("paper_questions")
@Schema(name = "PaperQuestion", description = "试卷题目关联实体类")
public class PaperQuestion implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @Schema(description = "试卷ID")
    private Integer paperId;

    @Schema(description = "题目ID")
    private Integer questionId;

    @Schema(description = "题目顺序")
    private Integer questionOrder;

    @Schema(description = "题目在试卷中的分值")
    private Integer questionScore;

    @Schema(description = "创建时间")
    private LocalDateTime createTime;

    // 关联字段，不映射到数据库
    @Schema(description = "题目信息")
    @TableField(exist = false)
    private Question question;
} 